<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<table border="1" align="left">
		<thead>
			<tr>
			    <th>工资编号</th>
				<th>用户账号</th>
				<th>用户姓名</th>
				<th>基本工资</th>
				<th>岗位工资</th>
				<th></th>
				<th></th>
				<th></th>
			</tr>
		</thead>
		<tbody>
		<s:hidden name="salaryId" value="%{salaryId}"></s:hidden>
			<s:iterator value="salaryList"  >
				<tr>
				    <td><s:property value="salaryId"/></td>
					<td><s:property value="users.userId" /></td>
					<td><s:property value="users.userName" /></td>
					<td><s:property value="basicSalary" /></td>
					<td><s:property value="dutySalary" /></td>
					<td><s:form action="salaryAction_showAddPage" namespace="/">
					<%// <s:set name="userId" value="<s:property value="userId" />"></s:set><!-- 设置自动应以标签 --> %>
					      <s:hidden name="userId" value="%{userId}"></s:hidden>
					      <input type="submit" value="添加/修改档案" />
					    </s:form>
					</td>
					<td><s:form action="salaryAction_deleteSalary" namespace="/">
					<%// <s:set name="userId" value="<s:property value="userId" />"></s:set><!-- 设置自动应以标签 --> %>
					      <s:hidden name="salaryId" value="%{salaryId}"></s:hidden>
					      <s:submit value="删除"/>
					    </s:form>
					</td>
					<td><s:form action="salaryAction_modifySalary" namespace="/">
					<%// <s:set name="userId" value="<s:property value="userId" />"></s:set><!-- 设置自动应以标签 --> %>
					      <s:hidden name="salaryId" value="%{salaryId}"></s:hidden>
					      <s:submit value="修改"/>
					    </s:form>
					</td>
				</tr>
			</s:iterator>
		</tbody>
	</table>
</body>
</html>